/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs.statistics;

import fwdisp.gui.moduls.SecRowPanel;
import java.awt.BorderLayout;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.data.general.DefaultPieDataset;

/**
 *
 * @author rbs
 */
public class OtherCityStats extends SecRowPanel{

    public OtherCityStats() {
        setName("Region");

        setLayout(new BorderLayout());

        DefaultPieDataset data = new DefaultPieDataset();
        data.setValue("HOT", 110);
        data.setValue("Oberlungwitz", 60);
        data.setValue("Limbach", 80);
        data.setValue("Glauchau", 90);
        data.setValue("Meerane", 100);
        data.setValue("Lichtenstein", 90);

        JFreeChart chart = ChartFactory.createPieChart3D("Einsatztypen", data,
                false, false, false);
        
        chart.setBackgroundPaint(getBackground());


        ChartPanel panel = new ChartPanel(chart);


        panel.setPopupMenu(null);
        add(panel, BorderLayout.CENTER);
    }


}
